<?php

declare(strict_types=1);
/**
 * This file is part of habo_new_media.
 *
 * @link     https://www.berlen.cn/
 * @contact  tech@berlen.cn
 * @license  http://gitlab.rehou.cn/habo/habo_new_media/-/blob/master/README.md
 */
namespace app\enum;

class KsBidEnum
{
    /*
     * @var int 待执行状态
     */
    public const TASK_STATUS_WAIT = 0;

    /*
     * @var int 已成功状态
     */
    public const TASK_STATUS_SUCCESS = 1;

    /*
    * @var int 部分失败状态
    */
    public const TASK_STATUS_FAIL = 2;

    /*
    * @var int 托管每页数量
    */
    public const TASK_PAGE_SIZE = 100;

    /*
    * @var int 激活+次留
    */
    public const TASK_TYPE_ONE = 1;

    /*
    * @var int 激活+次留+增强7日
    */
    public const TASK_TYPE_TWO = 2;

    /*
    * @var int 激活+7日留存
    */
    public const TASK_TYPE_THR = 3;

    /*
    * @var int 关键行为
    */
    public const TASK_TYPE_FUR = 4;

    /*
    * @var int 激活+付费
    */
    public const TASK_TYPE_FIV = 5;

    /*
    * @var int 激活+ROI
    */
    public const TASK_TYPE_SIX = 6;

    /*
    * @var int 激活
    */
    public const TASK_TYPE_SEV = 7;

    /*
    * @var int 表单
    */
    public const TASK_TYPE_EIG = 8;

    /*
    * @var int 付费
    */
    public const TASK_TYPE_NIN = 9;

    /*
    * @var int 唤起
    */
    public const TASK_TYPE_TEN = 10;
    /*
    * @var int 每日留存
    */
    public const TASK_TYPE_ELEVEN = 11;

    public const TASK_TYPE_FIELD = [
        self::TASK_TYPE_ONE => [
            'ocpx_action_type' => '180',
            'deep_conversion_type' => '7',
        ],
        self::TASK_TYPE_TWO => [
            'ocpx_action_type' => '180',
            'deep_conversion_type' => '7',
            'enhance_conversion_type' => '8',
        ],
        self::TASK_TYPE_THR => [
            'ocpx_action_type' => '180',
            'deep_conversion_type' => '8',
        ],
        self::TASK_TYPE_FUR => [
            'ocpx_action_type' => '773',
            'deep_conversion_type' => '0',
        ],
        self::TASK_TYPE_FIV => [
            'ocpx_action_type' => '180',
            'deep_conversion_type' => '3',
        ],
        self::TASK_TYPE_SIX => [
            'ocpx_action_type' => '180',
            'deep_conversion_type' => '92',
        ],
        self::TASK_TYPE_SEV => [
            'ocpx_action_type' => '180',
            'deep_conversion_type' => '0',
        ],
        self::TASK_TYPE_EIG => [
            'ocpx_action_type' => '53',
            'deep_conversion_type' => '0',
        ],
        self::TASK_TYPE_NIN => [
            'ocpx_action_type' => '190',
            'deep_conversion_type' => '0',
        ],
        self::TASK_TYPE_TEN => [
            'ocpx_action_type' => '324',
            'deep_conversion_type' => '0',
        ],
        self::TASK_TYPE_ELEVEN => [
            'ocpx_action_type' => '966',
            'deep_conversion_type' => '0',
        ],
    ];

    /*
    * @var int 增强
    */
    public const ENHANCE_TYPE_CONVERSION = 8;

    # 修改出价任务id
    public const PROJECT_BID_TASK_REDIS_KEY = 'task:ks:project:bid';
}
